From: Ray Strode Date: Tue, 11 Oct 2011 17:34:04 +0000 (-0400) Subject: gdm: clean up spacing X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~7467 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d0edd970e12459addffc5c2bb75d31ebb09af68d;p=gnome-shell.git gdm: clean up spacing There's a lot of dead vertical space right now from the session list, even if there are no sessions. This commit mops that up. https://bugzilla.gnome.org/show_bug.cgi?id=661479 --- diff --git a/data/theme/gdm.css b/data/theme/gdm.css index c77884be4..83a09c1f7 100644 --- a/data/theme/gdm.css +++ b/data/theme/gdm.css @@ -99,7 +99,7 @@ } .login-dialog-prompt-layout { - padding-bottom: 64px; + padding-bottom: 32px; } .login-dialog-prompt-label { color: white; diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js index 3db76dee4..5420217ab 100644 --- a/js/gdm/loginDialog.js +++ b/js/gdm/loginDialog.js @@ -694,10 +694,13 @@ SessionList.prototype = { let ids = GdmGreeter.get_session_ids(); ids.sort(); - if (ids.length <= 1) + if (ids.length <= 1) { this._box.hide(); - else + this._button.hide(); + } else { + this._button.show(); this._box.show(); + } for (let i = 0; i < ids.length; i++) { let [sessionName, sessionDescription] = GdmGreeter.get_session_name_and_description(ids[i]);